Export full package version as CARGO_PKG_VERSION
authorWesley Wiser <wwiser@gmail.com>
Fri, 26 Dec 2014 21:38:25 +0000 (16:38 -0500)
committerWesley Wiser <wwiser@gmail.com>
Fri, 26 Dec 2014 21:38:25 +0000 (16:38 -0500)
Fixes #1047

src/cargo/ops/cargo_rustc/compilation.rs

index 073298670ee538b825cbe9ea7062b7463786252f..1d6688f9a69ee06a5a5e7935c35d20ffc1e1ada4 100644 (file)
@@ -84,6 +84,8 @@ impl Compilation {
                    Some(pkg.get_version().patch.to_string()))
               .env("CARGO_PKG_VERSION_PRE",
                    pre_version_component(pkg.get_version()))
+              .env("CARGO_PKG_VERSION",
+                   Some(pkg.get_version().to_string()))
               .cwd(pkg.get_root()))
     }
 }